<!DOCTYPE html>
<html xmlns:th="https://www.thymeleaf.org" lang="en">
<head>
    <title>登录</title>
</head>
<body>
<h1>登录</h1>
<div th:if="${param.error}">错误的用户名和密码.</div>
<form th:action="@{/login}" method="post">
    <div>
        <label>
            <input type="text" name="my-username" placeholder="用户名"/>
        </label>
    </div>
    <div>
        <label>
            <input type="password" name="my-password" placeholder="密码"/>
        </label>
    </div>
    <input type="submit" value="登录"/>
</form>
</body>
</html>